package info.heidao.ww2.common.constants;

import lombok.Getter;

/**
 * author: zhengheng
 * Date: 2020-06-15 15:11
 * Description:
 *
 * @author zhengheng
 */
@Getter
public enum ResultCodeEnum {
    /**
     * 一切OK
     */
    SUCCESS("SUCCESS", "调用成功"),
    BIZ_ERROR("BIZ_ERROR", "业务异常"),
    SYS_ERROR("SYS_ERROR", "系统异常"),
    PARAM_ERROR("PARAM_ERROR", "参数异常"),
    AUTH_ERROR("AUTH_ERROR", "授权异常"),
    EXPIRED_ERROR("EXPIRED_ERROR", "会话超时,请重新登录"),
    FORBIDDEN_ERROR("FORBIDDEN_ERROR", "系统访问权限异常，请清理浏览器缓存后重新登录访问");

    ResultCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private final String code;

    private final String msg;
}
